<VirtualHost *:80>
        ServerAdmin <%= node['apache']['user'] %>@<%= @node['fqdn'] %>
        ServerName <%= node['fqdn'] %>

        DocumentRoot <%= node[:faxocr][:home_dir] %>/rails/public
        <Directory <%= node[:faxocr][:home_dir] %>/rails/public >
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
        </Directory>
	RackEnv <%= node[:faxocr][:rails_mode] %>
	RackBaseURI /
	#SetEnv GEM_HOME <%= node[:faxocr][:home_dir] %>/rails/vendor/bundle/ruby/1.8

        ErrorLog /var/log/apache2/error-faxocr-production.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access-faxocr-production.log combined
        ServerSignature On

</VirtualHost>
